import scrapy


class ProxSpider(scrapy.Spider):
    name = 'prox'
    start_urls = ['http://www.gnu.org/']

    def start_requests(self):
        target = getattr(self, 'target', self.start_urls[0])
        print('yy:', self.yy, 'xx:', self.xx)
        yield scrapy.Request(target)

    def parse(self, response):
        print('processing page %s' % response.url)
